<form action="<?php echo site_url($this->config->item('admin_folder')."/reports/best_seller_excel")?>" method="post">
<p align="right"><input class="btn btn-primary" type="submit" value="Xuất excel"/></p>
    <table class="table table-striped" cellspacing="0" cellpadding="0">
        <thead>
            <tr>
                <?php /*<th>ID</th> uncomment this if you want it*/ ?>
                <th><?php echo lang('sku');?></th>
                <th><?php echo lang('name');?></th>
                <th><?php echo lang('quantity');?></th>
            </tr>
        </thead>
        <tbody>
        
            <?php  foreach($best_sellers as $b):?>
            <tr>
                <?php /*<td style="width:16px;"><?php echo  $customer->id; ?></td>*/?>
                <td><?php echo  $b->sku; ?></td>
                <td><?php echo  $b->name; ?></td>
                <td><?php echo $b->quantity_sold; ?></a></td>
            </tr>
          <input type="hidden" name="best_seller_excel[]" value='<?php echo json_encode(array("sku"=>$b->sku,"name"=>$b->name,"quantity_sold"=>$b->quantity_sold,"subtotal"=>$b->subtotal))?>' />
            <?php endforeach;?>
        </tbody>
    </table>
</form>